//package nancal.mp.mvc.devops
//
//import nancal.mp.client.integration.JenkinsClient
//import nancal.mp.model.OpsDeployModel
//import nbcp.base.comm.ApiResult
//import nbcp.base.annotation.*
//import org.springframework.beans.factory.annotation.Autowired
//import org.springframework.web.bind.annotation.PostMapping
//import org.springframework.web.bind.annotation.RequestMapping
//import org.springframework.web.bind.annotation.RestController
//import javax.servlet.http.HttpServletRequest
//
//import nbcp.base.annotation.*
//import nbcp.base.annotation.mvc.*
//
//@RequestMapping("/dev/jenkins")
//@RestController
//class JenkinsController {
//    @Autowired
//    lateinit var jenkinsClient: JenkinsClient
//
//    @PostMapping("/deploy-k8s")
//    fun gen_java(
//        @org.springframework.web.bind.annotation.RequestBody query: OpsDeployModel,
//        request: HttpServletRequest
//    ): ApiResult<String> {
//        return jenkinsClient.genAndBuildJob(query)
//    }
//}
